Animation system

In the current Kanzi version the animation system that this topic describes applies only to the animations you create using the Kanzi Engine API. The old animation system is still available in the Kanzi Engine API, but is deprecated.

Kanzi state manager uses the same animation system internally. Future versions of Kanzi will use the same animation system for the animations you create in Kanzi Studio.

The Kanzi animation system consists animations and timelines:

How the property timeline animations work

Property timeline uses the Kanzi property manager modifier stack. Kanzi applies the animation to the base value of the property, or the previous modifier in the stack (which can be another animation). That way you can stack animations that affect the same property.

When the animation ends it remains alive. The object describing the animation still exists so that the modifier can provide the property value when requested. When you use the Kanzi Engine API to apply multiple animations to an object you have to remove them, otherwise they keep consuming resources. Other systems, like the state manager and the Play Animation action, keep track of animations themselves, so that you do not need to.

The workflow of animating an object

To animate an object:

  1. Create an animation:
  2. Create a timeline.
  3. Assign the animation to the timeline.
  4. Play back the animation.

See also

Creating animations and timelines using the Kanzi Engine API

Animations

Animations best practices

Kanzi fundamentals